﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Document_Bottom.aspx.cs" Inherits="DocumentManage_Document_Bottom" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>按钮页面</title>
    <link rel="stylesheet" href="../css/css.CSS"  type="text/css" />
    <script language="javascript" type="text/javascript">
     var stype;
     function btnMageClk(type)
     {
        stype = type;
        Form1.HID.value   = parent.LeftFrame.hidform.HID.value ;         //选择文件夹的ID
        Form1.HPath.value = parent.LeftFrame.hidform.HPath.value ;       //选择文件夹的当前路径
        var sFeatures  = "dialogHeight:300px;dialogWidth:400px;resizeable:no;help:no;status:no";
        var sFeatures2 = "dialogHeight:600px;dialogWidth:500px;resizeable:no;help:no;status:no";
        var sHID   = Form1.HID.value;
        switch (type)
        {
             case 1://增加
                    if(Form1.HID.value == "" && Form1.HPath.value =="")
                    {
                       alert("请选择文件夹");
                       return;
                    }
                    else
                    {
                        showModalDialog("Document_Edit.aspx?Type=1" ,window,sFeatures);
                        var btnRefresh=parent.LeftFrame.document.getElementById("BtnRefresh1");
				        if(btnRefresh!=null)
				           btnRefresh.click();	
                    }
                    break;
             case 2://上传文档
                    if(Form1.HID.value == "" && Form1.HPath.value =="")
                    {
                        alert("请选择要修改的文件夹");
                        return;
                    }
                    else
                    {
                        showModalDialog("Document_Edit.aspx?Type=2&DocID=" +Form1.HID.value,window,sFeatures);                        
                    }			    
                    break;
         }
     }
    </script>
</head>
<body>
<% 
  Response .ExpiresAbsolute=System.DateTime.Now. AddSeconds(-1);
  Response.Expires=0;
  Response.CacheControl = "no-cache";
%>
    <form id="Form1" runat="server">
    <table align="center" style ="width :100%;" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td style ="width:260;"></td> 
          <td align ="center"  >
              <input id="Folder" type="hidden" name="Folder" runat="server" />
              <!--<input name="Btn_View" id="Btn_View" type="button" class="button02" onclick= "btnMageClk(1)"  value="查看(V)" accesskey ="v"/> -->
          </td>
        </tr>
      </table>
        <input type="hidden" id="HID" runat ="server"  />
        <input type="hidden" id="HPath" runat ="server"  />
        <input type="hidden" id="HName" runat ="server" />
        <input type="hidden" id="hChildNumber" runat ="server" />
        <input type="hidden" id="hDOrder" runat ="server" />
        <input type="hidden" id="hEffective" runat ="server" />
        <input type="hidden" id="hParentName" runat ="server" />
    </form>
</body>
</html>